<!DOCTYPE HTML>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <title>享点阅读（网页主页）</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- 设置初始缩放比例为1.0，使用设备宽度  -->
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <!-- 在iOS下开启全屏模式  -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <!-- 隐藏 Sarafi 状态栏  -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- 启用360浏览器的极速模式(webkit) -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- 微软的老式浏览器 -->
    <meta name="MobileOptimized" content="320">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">
    
    <link href="/public/img/images/icon/xd.ico" rel="shortcut icon" />
    <link href="/public/css/comment/wapReset.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/public/css/comment/header_top.css">
    <link href="/public/css/homepage.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/public/css/comment/homepage_list.css">
    <script src="/public/js/rem/rem.js"></script>
</head>
<body>
<header>
<div class="down_app">下载APP</div>
<div class="searchFalse">
    <img src="/public/img/images/tabbar-my.png" alt="个人中心" class="personal"/>
</div>
<div class="logo">
    <img src="/public/img/images/textLogo.png"/>
</div>
<div class="search">
    <img src="/public/img/images/tabbar-search.png" alt="搜索"  class="search_hot" data-act="home"/>
</div>
</header>
<!-- lunbo -->
<div class="main_visual">
    <button id="btn_prev"></button>
    <button id="btn_next"></button>
    <div class="flicking_con">
        <a href="#">1</a>
        <a href="#">2</a>
        <a href="#">3</a>
    </div>
    <div class="main_image">
        <ul>
            <li><span class="img_3"></span></li>
            <li><span class="img_4"></span></li>
            <li><span class="img_5"></span></li>
        </ul>
    </div>
</div>

<div class="new_read">
    <span date_init="还没有近期阅读的书籍哦">
        <?php if( isset( $data['record'][0] ) ):?>
            <img src="/public/img/images/homepage_time_15.jpg">
            <a href="/novel/novel/chapterContent?novelid=<?php echo $data['record'][0]['novel_id'];?>&chapterid=<?php echo $data['record'][0]['chapter_id'];?>">
                近期阅读：<?php echo $data['record'][0]['novel_title'];?>
            </a>
        <?php else:?>
            <img src="/public/img/images/homepage_time_15.jpg">
            还没有近期阅读的书籍哦
        <?php endif;?>
    </span>
    <button>
        <img src="/public/img/images/book_button_15.jpg">
    </button>
</div>
<nav>
    <a href="../novel/newBook?from=home">
        <li>
            <img src="/public/img/images/newBookicon.png">
            <p>新书</p>
        </li> 
    </a>
    <a href="../novel/rankBook">
        <li>
            <img src="/public/img/images/winicon.png">
            <p>排行</p>
        </li>
    </a>
    <a href="../novel/category?from=home">
        <li>
            <img src="/public/img/images/classicon.png">
            <p>分类</p>
        </li>
    </a>
    <a href="../novel/freeBook?from=home">
        <li>
            <img src="/public/img/images/besticon.png">
            <p>免费</p>
        </li>
    </a>
</nav>
<!--精品推荐、热门新书、最新免费-->
    <?php if($data['well_chosen']['total'] > 0):?>
        <div class="homepage_list">
            <h2>
                <a href="javascript:;">精品推荐</a>
                <span data-type="chosenBook" data-from="home">更多 <img src="/public/img/images/btn-turnRight.png"></span>
            </h2>
            <?php foreach($data['well_chosen']['list'] as $n):?>
                <li novel-id="<?php echo $n['novel_id'];?>">
                    <img src="<?php echo $n['novel_cover'];?>">
                    <div>
                        <h4><?php echo $n['novel_title'];?></h4>
                        <h6><?php echo $n['novel_introduction'];?></h6>
                        <p>
                            <span>作者 | <?php echo $n['novel_author'];?></span>
                            <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                            <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                        </p>
                    </div>
                </li>
            <?php endforeach;?>
        </div>
    <?php endif;?>
    <?php if($data['new']['total'] > 0):?>
        <div class="homepage_list">
            <h2>
                <a href="javascript:;">热门新书</a>
                <span data-type="newBook" data-from="home">更多 <img src="/public/img/images/btn-turnRight.png"></span>
            </h2>
            <?php foreach($data['new']['list'] as $n):?>
                <li novel-id="<?php echo $n['novel_id'];?>">
                    <img src="<?php echo $n['novel_cover'];?>">
                    <div>
                        <h4><?php echo $n['novel_title'];?></h4>
                        <h6><?php echo $n['novel_introduction'];?></h6>
                        <p>
                            <span>作者 | <?php echo $n['novel_author'];?></span>
                            <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                            <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                        </p>
                    </div>
                </li>
            <?php endforeach;?>
        </div>
    <?php endif;?>
    <?php if($data['free']['total'] > 0):?>
        <div class="homepage_list">
            <h2>
                <a href="javascript:;">最新免费</a>
                <span data-type="freeBook" data-from="home">更多 <img src="/public/img/images/btn-turnRight.png"></span>
            </h2>
            <?php foreach($data['free']['list'] as $n):?>
                <li novel-id="<?php echo $n['novel_id'];?>">
                    <img src="<?php echo $n['novel_cover'];?>">
                    <div>
                        <h4><?php echo $n['novel_title'];?></h4>
                        <h6><?php echo $n['novel_introduction'];?></h6>
                        <p>
                            <span>作者 | <?php echo $n['novel_author'];?></span>
                            <a href="javascript:;"><?php echo $n['novel_type'];?></a>
                            <a href="javascript:;"><?php echo $n['novel_category'];?></a>
                        </p>
                    </div>
                </li>
            <?php endforeach;?>
        </div>
    <?php endif;?>
    <ul class="button_nav">
        <a href="/"><li>首页</li></a>
        <a href="../novel/category?from=home"><li>分类</li></a>
        <a href="../novel/rankBook?from=home"><li>排行</li></a>
        <a href="../novel/newBook?from=home"><li>新书</li></a>
        <a href="../novel/freeBook?from=home"><li>免费</li></a>
    </ul>
<aside id="block">
   <!--  <span>最新<br/>阅读</span> -->
</aside>
<footer>
下载 享点阅读 APP
</footer>
<div class="aside_Info">
    
        <div>最近阅读</div>
        <?php if( !empty( $data['record'] ) ):?>
            <ul>
                <?php foreach( $data['record'] as $v ):?>
                    <li>
                        <h2>
                            <?php echo $v['novel_title'];?>
                            <a href="/novel/novel/chapterContent?novelid=<?php echo $v['novel_id'];?>&chapterid=<?php echo $v['chapter_id'];?>">
                                <span>
                                    继续阅读 <img src="/public/img/images/btn-turnRight.png">
                                </span>
                            </a>
                        </h2>
                        <h4><span><?php echo $v['chapter_name'];?></span><a href="javascript:;"><?php echo $v['time'];?></a></h4>
                    </li>
                <?php endforeach;?>
            </ul>
        <?php else:?>
            <div class="nearread_null">
                <img src="/public/img/images/default_recent.png">
                <p>暂无阅读记录</p>
            </div>
        <?php endif;?>
<!--        <div class="talk_login">
            <p>登录查看更多内容</p>
            <button>登 录</button>
        </div>-->
    
</div>
<script type="text/javascript" src="/public/js/jquery1.7.2.js"></script>
<script type="text/javascript" src="/public/js/jquery.event.drag-1.5.min.js"></script>
<script type="text/javascript" src="/public/js/jquery.touchSlider.js"></script>
<script type="text/javascript" src="/public/js/Tdrag.min.js"></script>

<script src="/public/js/homepage.js"></script>
<script type="text/javascript" src="/public/js/header.js"></script>
<script type="text/javascript" src="/public/js/comment.js"></script>
</body>
</html>